import java.awt.event.*;
import javax.swing.*;

public class AllClasses{
/**clasa interioara poate fi folosita oriunde in acest fisier*/
public class Data{
int x;
int y;
}
public void getResultate(){
JButton b = new JButton("Press me!");
b.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
System.out.println("Thanks for pressing me ;)");
}
});
}
}
/**Clasa din acelasi fisier ca si AllCasses, dar poate fi folosita
* (cu avertisment) in alte contexte.
*/
class AnotherClass{
//metode si campuri...
}

